﻿using System;
using EPiServer.Core;
using EPiServer.DataAbstraction;

namespace EPiCloner.EventHandlers
{
    public delegate int PageCloningEventHandler(PageCloningEventArgs e);
 
    public class PageCloningEventArgs : EventArgs
    {
        public PageCloningEventArgs(PageReference sourceRef, PageReference destinationRef, LanguageBranch sourceLanguage, LanguageBranch targetLanguage, string rootPageName)
        {
            SourceReference = sourceRef;
            DestinationReference = destinationRef;
            SourceLanguage = sourceLanguage;
            TargetLanguage = targetLanguage;
            RootPageName = rootPageName;
        }

        public PageReference SourceReference { get; private set; }
        public PageReference DestinationReference { get; private set; }
        public LanguageBranch SourceLanguage { get; private set; }
        public LanguageBranch TargetLanguage { get; private set; }
        public string RootPageName { get; private set; }
    }

}